<{include file="_head.html"}>
<!-- 编辑器 -->
<link rel="stylesheet" href="kindeditor/themes/default/default.css" />
<link rel="stylesheet" href="kindeditor/plugins/code/prettify.css" />
<script type="text/javascript" src="kindeditor/kindeditor.js"></script>
<script type="text/javascript" src="kindeditor/lang/zh_CN.js"></script>
<script type="text/javascript" src="kindeditor/plugins/code/prettify.js"></script>
<script type="text/javascript" src="kindeditor/credit.js"></script>
<!-- 编辑器 -->
<!-- 弹框 -->
<script type="text/javascript" src="js/jquery.fancybox-1.3.4.js"></script>
<link rel="stylesheet" type="text/css" href="css/jquery.fancybox-1.3.4.css" media="screen" />
<script type="text/javascript">
	$(document).ready(function() {
		 $(".various1").fancybox({
            'titlePosition':'inside',
            'transitionIn':'none',
            'transitionOut':'none'
        });

	});

    $(function(){

        $("#sub").click(function(){
             var sub=$("[name=sub_protocol]").is(":checked");
            if(!sub){
                alert("必须同意投稿协议！");
                return false;
            }
            var copr=$("[name=copr_protocol]").is(":checked");
            if(!copr){
                alert("必须同意版权协议！");
                return false;
            }
            var yes=quedingSmall("",".subCheck");
            if(yes)
                $("#infoApply").submit();
           
        });

        // $("#infoApply").submit(function(){
        //     var sub=$("[name=sub_protocol]").is(":checked");
        //     if(!sub){
        //         alert("必须同意投稿协议！");
        //         return false;
        //     }
        //     var copr=$("[name=copr_protocol]").is(":checked");
        //     if(!copr){
        //         alert("必须同意版权协议！");
        //         return false;
        //     }
        //     // var label_id= $("[name=label_id]").eq(0).val();
        //     // alert(label_id);
            
        //     var yes=queding("确认提交申请！",".subCheck");
            
        // })
    })
</script>
<!-- 弹框 -->

<{include file="head.html"}>
<!-- 主体内容-开始 -->
<div class="j_bjzl">
	<div class="j_bjzln"
        <div class="j_bjzlnx">
            <form method="post" name="myForm" id="infoApply"  enctype="multipart/form-data">
        	<span class="j_tg" style="text-align:center;">向子时投稿</span>
            <div class="j_bjzlnxn">
            	<span class="j_bjzlnxnz"><span>*</span>标题</span>
                <div class="j_bjzlnxny">
                	<input type="text" name="title" checkMsg="标题不能为空！" value="<{$row.title}>" class="j_bjzlnxny2 subCheck" />
                </div>
            </div>
            <div class="j_bjzlnxn">
            	<span class="j_bjzlnxnz"><span>*</span>类别</span>
                <div class="j_bjzlnxny">
                	<!-- <input type="text" value="" class="j_bjzlnxny2" /> -->
                    <select name="infoClass" checkMsg="请选择类别！" class="j_bjzlnxny2 subCheck">
                        <option value="">选择类别</option>
                        <{foreach item=res from=$info_class}>
                        <option value="<{$res.id}>" <{if $row.class_id==$res.id}>selected="selected"<{/if}>><{$res.class_name}></option>
                        <{/foreach}>
                    </select>
                </div>
            </div>
            <div class="j_bjzlnxn">
                <span class="j_bjzlnxnz"><span>*</span>标签</span>
                <div class="j_bjzlnxny">
                    <{foreach item=res from=$label}>
                    <span class="j_tgxy"><input name="label_id[<{$res.id}>][<{$res.lid}>]" <{if $res.lid!=''}> checked="checked" <{/if}>  type="checkbox" value="<{$res.id}>" /><{$res.label_name}></span>
                    <{/foreach}>
                </div>
            </div>
            <div class="j_bjzlnxn">
            	<span class="j_bjzlnxnz"><span>*</span>内容</span>
                <div class="j_bjzlnxny">
                	<textarea class="editor" name="intro" cols="90" rows="5" checkMsg="内容不能为空！"><{$row.intro}></textarea>
                </div>
            </div>
            <div class="j_bjzlnxn">
            	<span class="j_bjzlnxnz"><span>*</span>缩略图</span>
                <div class="j_bjzlnxny">
                	<input type="file" value="<{$row.thumbnail}>"  checkMsg="缩略图不能为空！" name="thumbnail" class="j_bjzlnxny2 <{if $row.thumbnail==''}> subCheck<{/if}>" />
                </div>
            </div>
            <{if $row.thumbnail}>
            <div class="j_bjzlnxn">
                <span class="j_bjzlnxnz"><span>*</span>缩略图预览</span>
                <div class="j_bjzlnxny">
                    <img src="./upload/info/small/<{$row.thumbnail}>">
                </div>
            </div>
            <{/if}>
            <div class="j_bjzlnxn">
            	<span class="j_bjzlnxnz">&nbsp;</span>
                <div class="j_bjzlnxny">
                	<span class="j_tgxy"><input name="sub_protocol" checked="checked" type="checkbox" value="1"  />投稿协议</span>
                	<span class="j_tgxy"><input name="copr_protocol" checked="checked" type="checkbox" value="1"  />版权协议</span>
                </div>
            </div>
            <div class="j_bjzlnxn">
            	<span class="j_bjzlnxnz">&nbsp;</span>
                <div class="j_bjzlnxny" id="content">
                	 <a href="#inline1" id="sub" class="j_jhwj2 various1">发送</a> 
                  <!--  <a href="#inline1" class=" various1"><input name="submit" class="j_jhwj2" type="submit" value="发送"></a>-->
                    <input type="hidden" value="apply" name="apply">
                    <div style="display:none ;">
                        <div id="inline1" style="width:600px;height:335px;overflow:auto;">
                            <div class="j_phxx_t"></div>
                            <span class="j_phxx_n">感谢您，我们会在 <span>3</span> 个工作日内与您联系，再次感谢！</span>
                        </div>
                    </div>
                </div>
            </div>
            </form>
        </div>
    </div>
    
</div>
<!-- 主体内容-结束 -->

<{include file="footer.html"}>
